﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Contexts;
using System.Text;

namespace Octopus.Injection.Commons.Interceptor.Injection
{
    [AttributeUsage(AttributeTargets.Class)]
    public class InjectionAttribute : ContextAttribute
    {
        public InjectionAttribute() : base("Injection") { }
        public override void GetPropertiesForNewContext(IConstructionCallMessage ccm)
        {
            ccm.ContextProperties.Add(new InjectionProperty());
        }
    }
}
